package com.ruoyi.crm.service;

import java.util.List;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.crm.domain.Business;
import com.ruoyi.crm.domain.dto.BusinessDTO;
import com.ruoyi.crm.domain.vo.BusinessVO;
import com.ruoyi.crm.domain.vo.MongoBusinessRecordVO;
import com.ruoyi.crm.domain.vo.ResourceGainVO;
import org.apache.ibatis.annotations.Param;

/**
 * 商机管理Service接口
 *
 * @author ruoyi
 * @date 2022-06-07
 */
public interface IBusinessService
{
    /**
     * 查询商机管理
     *
     * @param id 商机管理主键
     * @return 商机管理
     */
    public Business selectBusinessById(Long id);

    /**
     * 查询商机管理列表
     *
     * @param business 商机管理
     * @return 商机管理集合
     */
    public List<Business> selectBusinessList(Business business);

    /**
     * 新增商机管理
     *
     * @param business 商机管理
     * @return 结果
     */
    public int insertBusiness(Business business);

    /**
     * 修改商机管理
     *
     * @param business 商机管理
     * @return 结果
     */
    public int updateBusiness(Business business);

    /**
     * 批量删除商机管理
     *
     * @param ids 需要删除的商机管理主键集合
     * @return 结果
     */
    public int deleteBusinessByIds(Long[] ids);

    /**
     * 删除商机管理信息
     *
     * @param id 商机管理主键
     * @return 结果
     */
    public int deleteBusinessById(Long id);

    List<BusinessVO> selectBusinessVOList(Business business);

	List<BusinessVO> selectBusinessPoolList(Business business);

    List<MongoBusinessRecordVO> businessRecordData(Long businessId);

    void addRecord(BusinessDTO busines);

    AjaxResult backBusiness(String busId, String busReasonsId);

    AjaxResult businessGain(ResourceGainVO resourceGainVO);

    AjaxResult assignment(ResourceGainVO resourceGainVO);

    Business querySubjectByBusId(Long busId);
}
